if (DEFINED content_search_included)
  return()
endif()

set(content_search_included)

function(HasContentText OutVar File Text)
  file(READ ${File} TEMP)
  # message(${Text})
  string(FIND "${TEMP}" "${Text}" MATCHRES)
  if (${MATCHRES} EQUAL -1)
    set(${OutVar} OFF PARENT_SCOPE)
  else()
    set(${OutVar} ON PARENT_SCOPE)
  endif()
  unset(MATCHRES)
  unset(TEMP)
endfunction()
